package com.yupi.project.provider;
/**
 * @author zzsource
 * @creat 2023-03-04-18:49
 */

import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;

/**
 *@ClassName DemoServiceImpl
 *@Description TODO
 *@Author zzsource
 *@Date 2023/3/4 18:49
 *@Version 1.0
 **/
@DubboService
public class DemoServiceImpl implements DemoService{
    @Override
    public String sayHello(String name) {
        System.out.println("Hello " + name + ",request for consumer: " + RpcContext.getContext().getRemoteAddress());
        return "Hello " + name;
    }

    @Override
    public String sayHello2(String name) {
        return "yupi";
    }
}
